// binary representation
// attribute size in bytes (16), flags(16), handle (16), uuid (16/128), value(...)

#ifndef _BLE_FMY_CFG_H
#define _BLE_FMY_CFG_H

#include <stdint.h>
#include "app_config.h"
#include "gatt_common/le_gatt_common.h"

//set token =====================================================
#define  TOKEN_ID_PRODUCTION_MODE                     0 //0--debug, 1--production
#define  UUID_TOKEN_IS_BASE64_MODE                    0 //0--hex,   1--base64

#if(TOKEN_ID_PRODUCTION_MODE)
#define  FMY_DEBUG_SERVICE_ENABLE                     0
#else
#define  FMY_DEBUG_SERVICE_ENABLE                     1
#endif
//===============================================================

//firmware version config
#define  FMY_FW_VERSION_MAJOR_NUMBER                  1
#define  FMY_FW_VERSION_MINOR_NUMBER                  0
#define  FMY_FW_VERSION_REVISION_NUMBER               6

// set change mac config
#define  FMY_MAC_CHANGE_LOCK                          0 // 0--unpair后修改mac，1--unpair后不修改mac

// fmy authentication information
static const uint8_t fmy_serial_number[16] = "86f9c81176d140f3";
static const uint8_t fmy_product_data[8] = {0xF8, 0x6A, 0xE4, 0x3A, 0xC6, 0x7A, 0xCC, 0x6A};//JL
static const char fmy_Server_Encryption_Key[] = "BJzFrd3QKbdTXTDm5dFtt6jSGxtItVsZ1bEQ6VvzFUXndM9Rjeu+PHFoM+RD8RRHblpLBU42dQcFbjmVzGuWkJY=";
static const char fmy_Signature_Verification_Key[] = "BDNMWnP9Yd82Qz+8aZI245jklBLzwP3E5doLQRh3lRcIcSCIjpeSN3a6SNxRfA+oe5xiqf7paw84QD9mnh5nVWA=";

#if UUID_TOKEN_IS_BASE64_MODE
static const char fmy_token_uuid_char[] = "0d9290f5-2e7d-49b1-9aab-259b93f17e0e";
static const char fmy_token_auth_char[] = "MYG/ME8CAQECAQEERzBFAiEA3hgTtFg2nTHkX4iuG1Mxk/KNUCfKv8XIe85voCqFY3YCIH/hZVR/JanIF3LmEnZrUTDb7CVWew8E+setdWaW5oVxMGwCAQICAQEEZDFiMAkCAWYCAQEEAQIwEAIBZQIBAQQIYWnfhIYBAAAwEQICAMoCAQEECAAAAAAAAAAIMBYCAgDJAgEBBA0yNjI5ODMtMjYzMTg0MBgCAWcCAQEEENzutdJeT04ym3Vw0QXUzZA=";

#else

static const uint8_t fmy_token_uuid_hex[16] = {
    0x77, 0x38, 0xEF, 0xD3, 0x1D, 0xBA, 0x4D, 0x26, 0xAE, 0x3F, 0xAF, 0x09, 0x32, 0x6D, 0x94, 0x43,
};

static const uint8_t fmy_token_auth_hex[] = {
    0x31, 0x81, 0xBF, 0x30, 0x4F, 0x02, 0x01, 0x01, 0x02, 0x01, 0x01, 0x04, 0x47, 0x30, 0x45, 0x02,
    0x21, 0x00, 0x94, 0xC1, 0x87, 0xCD, 0xCA, 0x00, 0x80, 0x2A, 0xAD, 0x50, 0xC8, 0xD4, 0xD9, 0xD6,
    0xB5, 0x7F, 0x4F, 0x2A, 0x1F, 0x1D, 0x06, 0xF1, 0x00, 0x41, 0x60, 0xC4, 0x6D, 0x19, 0x76, 0x2D,
    0xB3, 0x89, 0x02, 0x20, 0x6C, 0x86, 0x02, 0xCB, 0x58, 0x6E, 0xC7, 0x64, 0xCF, 0x78, 0xA3, 0xA2,
    0xDB, 0x44, 0x36, 0x6D, 0xBA, 0xC3, 0x6C, 0x5D, 0x41, 0xC6, 0x36, 0x46, 0x73, 0xFD, 0x30, 0xF5,
    0xC4, 0x61, 0x26, 0xD9, 0x30, 0x6C, 0x02, 0x01, 0x02, 0x02, 0x01, 0x01, 0x04, 0x64, 0x31, 0x62,
    0x30, 0x09, 0x02, 0x01, 0x66, 0x02, 0x01, 0x01, 0x04, 0x01, 0x02, 0x30, 0x10, 0x02, 0x01, 0x65,
    0x02, 0x01, 0x01, 0x04, 0x08, 0xBA, 0x54, 0xFD, 0xA5, 0x8C, 0x01, 0x00, 0x00, 0x30, 0x11, 0x02,
    0x02, 0x00, 0xCA, 0x02, 0x01, 0x01, 0x04, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08,
    0x30, 0x16, 0x02, 0x02, 0x00, 0xC9, 0x02, 0x01, 0x01, 0x04, 0x0D, 0x32, 0x36, 0x32, 0x39, 0x38,
    0x33, 0x2D, 0x32, 0x36, 0x33, 0x31, 0x38, 0x34, 0x30, 0x18, 0x02, 0x01, 0x67, 0x02, 0x01, 0x01,
    0x04, 0x10, 0x85, 0x64, 0xFC, 0xE5, 0x32, 0x4E, 0x4B, 0x77, 0xBD, 0xFD, 0x60, 0xF5, 0xA9, 0xDA,
    0xEA, 0xD5, 0x31, 0x81, 0xBF, 0x30, 0x4F, 0x02, 0x01, 0x01, 0x02, 0x01, 0x01, 0x04, 0x47, 0x30,
    0x45, 0x02, 0x21, 0x00, 0xC5, 0xA4, 0x47, 0xCE, 0x97, 0x59, 0x97, 0xEB, 0x6D, 0xD4, 0x9B, 0xA8,
    0x4D, 0xC2, 0x2E, 0xD6, 0xBE, 0x31, 0xEE, 0x59, 0xD5, 0x64, 0x34, 0x13, 0x0C, 0x53, 0xCC, 0x55,
    0xA9, 0x39, 0x9D, 0xFF, 0x02, 0x20, 0x06, 0xA5, 0xE7, 0x76, 0x3C, 0xFB, 0x01, 0x68, 0x8A, 0x64,
    0x83, 0x07, 0x44, 0x47, 0x0D, 0x62, 0x5A, 0xE2, 0xB0, 0x79, 0xAF, 0xE9, 0x1C, 0xA8, 0xF1, 0x14,
    0xE8, 0x4B, 0xA6, 0x9B, 0x8E, 0xB0, 0x30, 0x6C, 0x02, 0x01, 0x02, 0x02, 0x01, 0x01, 0x04, 0x64,
    0x31, 0x62, 0x30, 0x09, 0x02, 0x01, 0x66, 0x02, 0x01, 0x01, 0x04, 0x01, 0x02, 0x30, 0x10, 0x02,
    0x01, 0x65, 0x02, 0x01, 0x01, 0x04, 0x08, 0x0D, 0x53, 0x83, 0x8F, 0x8C, 0x01, 0x00, 0x00, 0x30,
    0x11, 0x02, 0x02, 0x00, 0xCA, 0x02, 0x01, 0x01, 0x04, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
    0x00, 0x08, 0x30, 0x16, 0x02, 0x02, 0x00, 0xC9, 0x02, 0x01, 0x01, 0x04, 0x0D, 0x32, 0x36, 0x32,
    0x39, 0x38, 0x33, 0x2D, 0x32, 0x36, 0x33, 0x31, 0x38, 0x34, 0x30, 0x18, 0x02, 0x01, 0x67, 0x02,
    0x01, 0x01, 0x04, 0x10, 0x49, 0x4E, 0x29, 0xFE, 0x7A, 0x50, 0x40, 0x91, 0x87, 0xF7, 0xB4, 0xB6,
    0x93, 0x7E, 0x85, 0x43, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
};
#endif


#endif
